<?php
class Solicitudes_Form_ObjetivoAutoevaluacion extends Form_Base{
	
		
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
		
		$this->setName('item_agenda');
		$this->setMethod("post");
		
		$codobjetivo = new Zend_Form_Element_Hidden("codobjetivo");
		
		$texto = new Zend_Form_Element_Textarea('texto');
		$texto->setLabel('Objetivo :');
		$texto->setRequired(true);
		$texto->addFilter('StripTags');
		$texto->addFilter('StringTrim');
		$texto->setAttrib("rows",4);
//		$texto->addFilter('StringToUpper');

		$submit = new Zend_Form_Element_Submit('btnSubmit');
		$submit->setLabel('Crear');
		$submit->setAttrib("class", "iceCmdBtn");
		$submit->setDescription($this->createCommandLink("Cancelar", "solicitudes/detalleautoevaluacion/metodologia/"));
		
		$this->addElements ( array ( $codobjetivo,
									 $texto,
									 $submit
								 ) );
		
		$this->loadTableDecorators();
	}
	
}